From 5642703b0edf146046213f47d7e725adb4b1af9f Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 29 Apr 2011 11:04:01 +0200 Subject: [PATCH] notebook: Match horizontal and vertical code paths I have no idea what this code does, but it looks better now. :o --- gtk/gtknotebook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index b24a828b7d..b6ebff4f28 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -6175,7 +6175,7 @@ gtk_notebook_page_allocate (GtkNotebook *notebook, * coordinate of the allocation too, to position it after * the end of the overlap. */ - if (page != priv->cur_page && tab_overlap > tab_curvature) + if (page != priv->cur_page && tab_overlap > tab_curvature + MIN (tab_padding.top, tab_padding.bottom)) { if (gtk_notebook_page_num (notebook, page->child) > gtk_notebook_page_num (notebook, priv->cur_page->child)) -- 2.30.2